package com.liu.sx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 存储设备电压
 *
 */
@NoArgsConstructor
@Setter
@Getter
@Entity
@Table(name = "t_voltage")
public class Voltage {

    @Id
    private String  id;

    private String address;

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date rq;

    private Integer volt;

    private Integer count;//捕获虫数量

    private String lightState;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date bwTime;

//    信号强度
    private Integer signNum;


}
